<template>
  <div>
    <el-radio-group v-model="url" @change="go2url" class="btns">
      <el-radio-button label="default_bpmn">默认</el-radio-button>
      <el-radio-button label="custom_palette_contextPad">自定义palette</el-radio-button>
      <el-radio-button label="custom_palette_contextPad_all">完全自定义Palette</el-radio-button>
      <el-radio-button label="properties-panel-extension">自定义右侧面板属性</el-radio-button>
    </el-radio-group>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: this.$route.name,
    }
  },
  methods: {
    go2url(name) {
      this.$router.push({ name })
    },
  },
}
</script>

<style lang="scss" scoped>
.btns {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%);
  z-index: 100;
}
</style>
